<?php


namespace app\adminapi;


use app\common\controller\BaseHotelController;
use app\common\controller\BaseLikeAdminController;

/**
 * @projectName src
 */
class BaseAdminController extends BaseHotelController
{
    protected int $adminId = 0;
    protected  array $adminInfo = [];

    public function initialize()
    {
        if (isset($this->request->adminInfo) && $this->request->adminInfo) {
            $this->adminInfo = $this->request->adminInfo;
            $this->adminId = $this->request->adminInfo['admin_id'];
        }
    }
}